import Vue from 'vue'
import App from '@/App.vue'
import router from '@/router'
import store from '@/store'
Vue.config.productionTip = false
//测试接口函数是否可以用
 //import '@/api'//测试接口是否可以用
import '@/mock/mockServer.js'//引入模拟数据server
import 'swiper/css/swiper.min.css'//引入swiper轮播图的css
//全局注册组件
import TypeNav from '@/components/TypeNav'
import SwiperLoop from '@/components/SwiperLoop'
import Pagination from '@/components/Pagination'
Vue.component('TypeNav',TypeNav)
Vue.component('SwiperLoop',SwiperLoop)
Vue.component('Pagination',Pagination)


new Vue({
    //在创建之前安装全局事件总线$bus
    beforeCreate() {
        Vue.prototype.$bus=this
    },
    render: h => h(App),
  router,
  store
}).$mount('#app')
